import request from '@/utils/request'

// 查询卖家备注列表
export function listMemo(query) {
  return request({
    url: '/business/memoRelation/list',
    method: 'get',
    params: query
  })
}

// 查询卖家备注详细
export function getMemo(id) {
  return request({
    url: '/business/memoRelation/' + id,
    method: 'get'
  })
}

// 新增卖家备注
export function addMemo(data) {
  return request({
    url: '/business/memoRelation',
    method: 'post',
    data: data
  })
}

// 修改卖家备注
export function updateMemo(data) {
  return request({
    url: '/business/memoRelation',
    method: 'put',
    data: data
  })
}

// 删除卖家备注
export function delMemo(id) {
  return request({
    url: '/business/memoRelation/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/memoRelation/export',
    method: 'post',
    data: data
  })
}

// 状态变更
export function updateChangeStatus(data){
  return request({
    url: '/business/memoRelation/changeStatus',
    method: 'put',
    params: data
  })
}

// 刷新缓存
export function refreshCache() {
  return request({
    url: '/business/memoRelation/refreshCache',
    method: 'delete'
  })
}
